/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-03-12
 * Time: 20:25
 */
public class TestDemo {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.myToString();
        myArrayList.add(6,9);
        boolean ret=myArrayList.contains(5);
        System.out.println(ret);
        System.out.println(myArrayList.indexOf(5));
        System.out.println(myArrayList.get(3));
        myArrayList.remove(6);
        myArrayList.myToString();
        myArrayList.clear();
        myArrayList.myToString();

    }
}
